import 'package:fish_redux/fish_redux.dart';

//TODO replace with your own action
enum DeviceLogDetailAction { action, refresh, reload, filter, clearFilterMsg }

class DeviceLogDetailActionCreator {
  static Action onAction() {
    return const Action(DeviceLogDetailAction.action);
  }

  static Action refreshUI() {
    return const Action(DeviceLogDetailAction.refresh);
  }

  static Action reload() {
    return const Action(DeviceLogDetailAction.reload);
  }

  static Action filterMsg(String msg) {
    return Action(DeviceLogDetailAction.filter, payload: msg);
  }

  static Action clearFilterMsg() {
    return const Action(
      DeviceLogDetailAction.clearFilterMsg,
    );
  }
}
